package yo.latyoo.hokage.skmr.biz.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import yo.latyoo.hokage.skmr.biz.domain.JobRegistry;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Optional;

public interface JobRegistryRepo extends JpaSpecificationExecutor<JobRegistry>, JpaRepository<JobRegistry, Long> {
    List<JobRegistry> findByUpdatedAtLessThan(LocalDateTime updatedAt);

    Optional<JobRegistry> findByGroupAppAndRegistryAddress(String appName, String registryAddress);

}
